package cn.gdut.chengcai.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.gdut.chengcai.entity.KeyValueInfo;
import cn.gdut.chengcai.entity.KeyValueInfoExample;

public interface KeyValueInfoDao {
	long countByExample(KeyValueInfoExample example);

	int deleteByExample(KeyValueInfoExample example);

	int deleteByPrimaryKey(Long id);

	int insert(KeyValueInfo record);

	int insertSelective(KeyValueInfo record);

	List<KeyValueInfo> selectByExample(KeyValueInfoExample example);

	KeyValueInfo selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") KeyValueInfo record, @Param("example") KeyValueInfoExample example);

	int updateByExample(@Param("record") KeyValueInfo record, @Param("example") KeyValueInfoExample example);

	int updateByPrimaryKeySelective(KeyValueInfo record);

	int updateByPrimaryKey(KeyValueInfo record);

	KeyValueInfo findByKey(String key);
}